<template>
	<view>
		<view class="m-list">
			<view class="m-item" v-for="(item,index) in 10" :key="index">
				<view class="m-item-image">
					<view class="m-item-tip">
						<text>推荐</text>
					</view>
					<image src="@/static/ceshi/pic2.png" mode="aspectFill"></image>
					<view class="m-item-image__bottom">
						<view class="m-item-image__left">
							<image src="@/static/index/icon-address.png" mode=""></image>
							<text>上海·杨浦区</text>
						</view>
						<view class="m-item-image__right">
							<text>5.0</text>
						</view>
					</view>
				</view>
				<view class="m-item-title u-line-2">
					<text>唯庭酒店上海复旦大学三门路地铁站店</text>
				</view>
				<view class="m-item-tags">
					<text>学校 | 复旦大学</text>
				</view>
				<view class="m-item-bottom">
					<view class="m-item-bottom__left">
						<text class="m-item-price">59</text>
					</view>
					<view class="m-item-bottom__right">
						<text>8000+订</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	page{
		background: #f6f6f6;
	}
.m-list{
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		padding: 30rpx 30rpx 0;
		.m-item{
			width: 335rpx;
			background: #fff;
			border-radius: 30rpx;
			margin-bottom: 20rpx;
			.m-item-image{
				position: relative;
				width: 335rpx;
				height: 335rpx;
				image{
					width: 100%;
					height: 100%;
				}
				.m-item-tip{
					position: absolute;
					top: 0;
					left: 0;
					display: flex;
					justify-content: center;
					align-items: center;
					width: 80rpx;
					height: 40rpx;
					background: #D3A358;
					border-top-left-radius: 30rpx;
					border-bottom-right-radius: 30rpx;
					font-size: 24rpx;
					color: #fff;
				}
				.m-item-image__bottom{
					position: absolute;
					left: 0;
					bottom: 0;
					display: flex;
					justify-content: space-between;
					align-items: center;
					width: 335rpx;
					height: 68rpx;
					background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000000 100%);
					.m-item-image__left{
						display: flex;
						align-items: center;
						font-size: 24rpx;
						color: #fff;
						line-height: 33rpx;
						padding-left: 20rpx;
						image{
							width: 30rpx;
							height: 30rpx;
						}
					}
					.m-item-image__right{
						font-size: 48rpx;
						color: #E4C89A;
						padding-right: 20rpx;
					}
				}
			}
			.m-item-title{
				margin-top: 16rpx;
				height: 84rpx;
				line-height: 42rpx;
				font-size: 30rpx;
				color: #33302D;
				font-weight: 600;
				padding-left: 16rpx;
				padding-right: 16rpx;
			}
			.m-item-tags{
				font-size: 24rpx;
				color: #9B958F;
				line-height: 33rpx;
				padding: 12rpx 16rpx 0;
			}
			.m-item-bottom{
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 10rpx 16rpx 30rpx 16rpx;
				.m-item-bottom__left{
					.m-item-price{
						font-size: 40rpx;
						color: #DE2C38;
						font-weight: 500;
						&::before{
							content: '￥';
							font-size: 20rpx;
						}
						&::after{
							content: '起';
							color: #76706B;
							font-size: 20rpx;
							font-weight: 400;
						}
					}
				}
				.m-item-bottom__right{
					font-size: 24rpx;
					color: #D3A358;
				}
			}
		}
	}
</style>
